<!DOCTYPE html>
<html lang="en">
  <head>
    <title></title>
    <script src="./js/vue2.js"></script>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
   
    <style>
      #app {
        width: 600px;
        margin: 10px auto;
      }

      .tb {
        border-collapse: collapse;
        width: 100%;
      }

      .tb th {
        background-color: #0094ff;
        color: white;
      }

      .tb td,
      .tb th {
        padding: 5px;
        border: 1px solid black;
        text-align: center;
      }

      .add {
        padding: 5px;
        border: 1px solid black;
        margin-bottom: 10px;
      }
    </style>
  </head>

  <body>
    <div id="app">
      <div class="add">
        编号:
        <input type="text" /> 品牌名称:
        <input type="text" />
        <input type="button" value="添加" />
      </div>
      <div class="add">
        品牌名称:
        <input type="text" placeholder="请输入搜索条件" />
      </div>
      <div>
        <table class="tb">
          <tbody>
            <tr>
              <th>编号</th>
              <th>品牌名称</th>
              <th>创立时间</th>
              <th>操作</th>
            </tr>
            <tr v-for="(item.index) in list" :key="index">
              <td>{{ item.id }}</td>
              <td>{{ item.name }}</td>
              <td>{{ item.time }}</td>
              <td>
                <a href="#">删除</a>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>

    <script>
      var vm = new Vue({
        el: "#app",
        data: {
          list: [
            {
              id: "1",
              name: "周杰伦",
              time: new Date()
            },
            {
              id: "2",
              name: "林俊杰",
              time: new Date()
            },
            {
              id: "3",
              name: "花粥",
              time: new Date()
            },
            {
              id: "4",
              name: "毛不易",
              time: new Date()
            },
            {
              id: "5",
              name: "宋冬野",
              time: new Date()
            },
            {
              id: "6",
              name: "孙燕姿",
              time: new Date()
            }
          ]
        }
      });
    </script>
  </body>
</html>
